package com.ruoyi.workSafetyStandardization.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 标准化考核汇总对象 scoring_inspection_result
 *
 * @author pengjie
 * @date 2023-12-15
 */
public class InspectionResult extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 考核汇总主键 */
    private String inspectionId;

    /** 矿单位 */
    @Excel(name = "矿单位")
    private String inspectionMiningUnit;

    /** 考核类型：0 内部，1外部 */
    @Excel(name = "考核类型：0 内部，1外部")
    private Long inspectionType;

    /** 评审编号 */
    @Excel(name = "评审编号")
    private String inspectionNo;

    /** 考核名称 */
    @Excel(name = "考核名称")
    private String inspectionName;

    /** 检查单位 */
    @Excel(name = "检查单位")
    private String inspectionUnit;

    /** 评委主任 */
    @Excel(name = "评委主任")
    private String inspectionLeader;

    /** 评委主任电话 */
    @Excel(name = "评委主任电话")
    private String inspectionLeaderPhone;

    /** 考核日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "考核日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inspectionStartDate;

    /** 考核日期结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "考核日期结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inspectionEndDate;

    /** 最终得分（nouse） */
    @Excel(name = "最终得分", readConverterExp = "n=ouse")
    private BigDecimal inspectionScore;

    /** 考评受限状态(0不受限，1受限) */
    @Excel(name = "考评受限状态(0不受限，1受限)")
    private Long limitState;

    /** 考评受限Ids（逗号分割） */
    @Excel(name = "考评受限Ids", readConverterExp = "逗=号分割")
    private String limitIds;

    /** 考评受限内容 */
    @Excel(name = "考评受限内容")
    private String limitContent;

    /** 重大隐患状态(0,无，1 有，内容来之专业隐患的评审) */
    @Excel(name = "重大隐患状态(0,无，1 有，内容来之专业隐患的评审)")
    private Long accidentJudgeState;

    /** 重大隐患内容 */
    @Excel(name = "重大隐患内容")
    private String accidentJudgeContent;

    /** 隐患内容的ids */
    @Excel(name = "隐患内容的ids")
    private String accidentJudgeContentIds;

    /** 标准分 */
    @Excel(name = "标准分")
    private BigDecimal standardScore;

    /** 考核标准得分 */
    @Excel(name = "考核标准得分")
    private BigDecimal inspectionStandardScore;

    /** 考核扣分 */
    @Excel(name = "考核扣分")
    private BigDecimal inspectionDeductScore;

    /** 最终得分 */
    @Excel(name = "最终得分")
    private BigDecimal inspectionLastScore;

    /** 考核评级 */
    @Excel(name = "考核评级")
    private String inspectionGrade;

    /** 考核状态
1评审中，2已提交，9已归档 */
    @Excel(name = "考核状态 1评审中，2已提交，9已归档")
    private Long inspectionState;

    /** 考核状态名称：1评审中，2已提交，9已归档 */
    @Excel(name = "考核状态名称：1评审中，2已提交，9已归档")
    private String inspectionStateName;

    /** 评委主任签名状态 */
    @Excel(name = "评委主任签名状态")
    private Long signState;

    /** 用户账号名 */
    @Excel(name = "用户账号名")
    private String signUserName;

    /** 评委主任签名日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评委主任签名日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date signDate;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String signName;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createByName;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createAt;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updateByName;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateAt;

    /** 版本 */
    @Excel(name = "版本")
    private String version;

    /** 状态, 默认1(1:正常；2:冻结；98:关闭；99:删除)； */
    @Excel(name = "状态, 默认1(1:正常；2:冻结；98:关闭；99:删除)；")
    private Long status;

    /** 扩展字段1 */
    @Excel(name = "扩展字段1")
    private String extra1;

    /** 扩展字段2 */
    @Excel(name = "扩展字段2")
    private String extra2;

    /** 扩展字段3 */
    @Excel(name = "扩展字段3")
    private String extra3;

    /** 一通三防扣分原因 */
    @Excel(name = "一通三防扣分原因")
    private String inspectionDeductreason;

    /** 符合基本要（1符合，0不符合） */
    @Excel(name = "符合基本要", readConverterExp = "1=符合，0不符合")
    private Long meetBasicRequirements;

    /** 不符合基本要求原因 */
    @Excel(name = "不符合基本要求原因")
    private String notMeetBasicRequirementsReason;


    public InspectionResult() {
    }

    /**
     *  leaderList 评审人信息
     */
    @TableField(exist = false)
    private List<InspectionTeamMembers> leaderList;

    public List<InspectionTeamMembers> getLeaderList() {
        return leaderList;
    }

    public void setLeaderList(List<InspectionTeamMembers> leaderList) {
        this.leaderList = leaderList;
    }

    public void setInspectionId(String inspectionId)
    {
        this.inspectionId = inspectionId;
    }

    public String getInspectionId()
    {
        return inspectionId;
    }
    public void setInspectionMiningUnit(String inspectionMiningUnit)
    {
        this.inspectionMiningUnit = inspectionMiningUnit;
    }

    public String getInspectionMiningUnit()
    {
        return inspectionMiningUnit;
    }
    public void setInspectionType(Long inspectionType)
    {
        this.inspectionType = inspectionType;
    }

    public Long getInspectionType()
    {
        return inspectionType;
    }
    public void setInspectionNo(String inspectionNo)
    {
        this.inspectionNo = inspectionNo;
    }

    public String getInspectionNo()
    {
        return inspectionNo;
    }
    public void setInspectionName(String inspectionName)
    {
        this.inspectionName = inspectionName;
    }

    public String getInspectionName()
    {
        return inspectionName;
    }
    public void setInspectionUnit(String inspectionUnit)
    {
        this.inspectionUnit = inspectionUnit;
    }

    public String getInspectionUnit()
    {
        return inspectionUnit;
    }
    public void setInspectionLeader(String inspectionLeader)
    {
        this.inspectionLeader = inspectionLeader;
    }

    public String getInspectionLeader()
    {
        return inspectionLeader;
    }
    public void setInspectionLeaderPhone(String inspectionLeaderPhone)
    {
        this.inspectionLeaderPhone = inspectionLeaderPhone;
    }

    public String getInspectionLeaderPhone()
    {
        return inspectionLeaderPhone;
    }
    public void setInspectionStartDate(Date inspectionStartDate)
    {
        this.inspectionStartDate = inspectionStartDate;
    }

    public Date getInspectionStartDate()
    {
        return inspectionStartDate;
    }
    public void setInspectionEndDate(Date inspectionEndDate)
    {
        this.inspectionEndDate = inspectionEndDate;
    }

    public Date getInspectionEndDate()
    {
        return inspectionEndDate;
    }
    public void setInspectionScore(BigDecimal inspectionScore)
    {
        this.inspectionScore = inspectionScore;
    }

    public BigDecimal getInspectionScore()
    {
        return inspectionScore;
    }
    public void setLimitState(Long limitState)
    {
        this.limitState = limitState;
    }

    public Long getLimitState()
    {
        return limitState;
    }
    public void setLimitIds(String limitIds)
    {
        this.limitIds = limitIds;
    }

    public String getLimitIds()
    {
        return limitIds;
    }
    public void setLimitContent(String limitContent)
    {
        this.limitContent = limitContent;
    }

    public String getLimitContent()
    {
        return limitContent;
    }
    public void setAccidentJudgeState(Long accidentJudgeState)
    {
        this.accidentJudgeState = accidentJudgeState;
    }

    public Long getAccidentJudgeState()
    {
        return accidentJudgeState;
    }
    public void setAccidentJudgeContent(String accidentJudgeContent)
    {
        this.accidentJudgeContent = accidentJudgeContent;
    }

    public String getAccidentJudgeContent()
    {
        return accidentJudgeContent;
    }
    public void setAccidentJudgeContentIds(String accidentJudgeContentIds)
    {
        this.accidentJudgeContentIds = accidentJudgeContentIds;
    }

    public String getAccidentJudgeContentIds()
    {
        return accidentJudgeContentIds;
    }
    public void setStandardScore(BigDecimal standardScore)
    {
        this.standardScore = standardScore;
    }

    public BigDecimal getStandardScore()
    {
        return standardScore;
    }
    public void setInspectionStandardScore(BigDecimal inspectionStandardScore)
    {
        this.inspectionStandardScore = inspectionStandardScore;
    }

    public BigDecimal getInspectionStandardScore()
    {
        return inspectionStandardScore;
    }
    public void setInspectionDeductScore(BigDecimal inspectionDeductScore)
    {
        this.inspectionDeductScore = inspectionDeductScore;
    }

    public BigDecimal getInspectionDeductScore()
    {
        return inspectionDeductScore;
    }
    public void setInspectionLastScore(BigDecimal inspectionLastScore)
    {
        this.inspectionLastScore = inspectionLastScore;
    }

    public BigDecimal getInspectionLastScore()
    {
        return inspectionLastScore;
    }
    public void setInspectionGrade(String inspectionGrade)
    {
        this.inspectionGrade = inspectionGrade;
    }

    public String getInspectionGrade()
    {
        return inspectionGrade;
    }
    public void setInspectionState(Long inspectionState)
    {
        this.inspectionState = inspectionState;
    }

    public Long getInspectionState()
    {
        return inspectionState;
    }
    public void setInspectionStateName(String inspectionStateName)
    {
        this.inspectionStateName = inspectionStateName;
    }

    public String getInspectionStateName()
    {
        return inspectionStateName;
    }
    public void setSignState(Long signState)
    {
        this.signState = signState;
    }

    public Long getSignState()
    {
        return signState;
    }
    public void setSignUserName(String signUserName)
    {
        this.signUserName = signUserName;
    }

    public String getSignUserName()
    {
        return signUserName;
    }
    public void setSignDate(Date signDate)
    {
        this.signDate = signDate;
    }

    public Date getSignDate()
    {
        return signDate;
    }
    public void setSignName(String signName)
    {
        this.signName = signName;
    }

    public String getSignName()
    {
        return signName;
    }
    public void setCreateByName(String createByName)
    {
        this.createByName = createByName;
    }

    public String getCreateByName()
    {
        return createByName;
    }
    public void setCreateAt(Date createAt)
    {
        this.createAt = createAt;
    }

    public Date getCreateAt()
    {
        return createAt;
    }
    public void setUpdateByName(String updateByName)
    {
        this.updateByName = updateByName;
    }

    public String getUpdateByName()
    {
        return updateByName;
    }
    public void setUpdateAt(Date updateAt)
    {
        this.updateAt = updateAt;
    }

    public Date getUpdateAt()
    {
        return updateAt;
    }
    public void setVersion(String version)
    {
        this.version = version;
    }

    public String getVersion()
    {
        return version;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setExtra1(String extra1)
    {
        this.extra1 = extra1;
    }

    public String getExtra1()
    {
        return extra1;
    }
    public void setExtra2(String extra2)
    {
        this.extra2 = extra2;
    }

    public String getExtra2()
    {
        return extra2;
    }
    public void setExtra3(String extra3)
    {
        this.extra3 = extra3;
    }

    public String getExtra3()
    {
        return extra3;
    }
    public void setInspectionDeductreason(String inspectionDeductreason)
    {
        this.inspectionDeductreason = inspectionDeductreason;
    }

    public String getInspectionDeductreason()
    {
        return inspectionDeductreason;
    }
    public void setMeetBasicRequirements(Long meetBasicRequirements)
    {
        this.meetBasicRequirements = meetBasicRequirements;
    }

    public Long getMeetBasicRequirements()
    {
        return meetBasicRequirements;
    }
    public void setNotMeetBasicRequirementsReason(String notMeetBasicRequirementsReason)
    {
        this.notMeetBasicRequirementsReason = notMeetBasicRequirementsReason;
    }

    public String getNotMeetBasicRequirementsReason()
    {
        return notMeetBasicRequirementsReason;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("inspectionId", getInspectionId())
            .append("inspectionMiningUnit", getInspectionMiningUnit())
            .append("inspectionType", getInspectionType())
            .append("inspectionNo", getInspectionNo())
            .append("inspectionName", getInspectionName())
            .append("inspectionUnit", getInspectionUnit())
            .append("inspectionLeader", getInspectionLeader())
            .append("inspectionLeaderPhone", getInspectionLeaderPhone())
            .append("inspectionStartDate", getInspectionStartDate())
            .append("inspectionEndDate", getInspectionEndDate())
            .append("inspectionScore", getInspectionScore())
            .append("limitState", getLimitState())
            .append("limitIds", getLimitIds())
            .append("limitContent", getLimitContent())
            .append("accidentJudgeState", getAccidentJudgeState())
            .append("accidentJudgeContent", getAccidentJudgeContent())
            .append("accidentJudgeContentIds", getAccidentJudgeContentIds())
            .append("standardScore", getStandardScore())
            .append("inspectionStandardScore", getInspectionStandardScore())
            .append("inspectionDeductScore", getInspectionDeductScore())
            .append("inspectionLastScore", getInspectionLastScore())
            .append("inspectionGrade", getInspectionGrade())
            .append("inspectionState", getInspectionState())
            .append("inspectionStateName", getInspectionStateName())
            .append("signState", getSignState())
            .append("signUserName", getSignUserName())
            .append("signDate", getSignDate())
            .append("signName", getSignName())
            .append("createBy", getCreateBy())
            .append("createByName", getCreateByName())
            .append("createAt", getCreateAt())
            .append("updateBy", getUpdateBy())
            .append("updateByName", getUpdateByName())
            .append("updateAt", getUpdateAt())
            .append("remark", getRemark())
            .append("version", getVersion())
            .append("status", getStatus())
            .append("extra1", getExtra1())
            .append("extra2", getExtra2())
            .append("extra3", getExtra3())
            .append("inspectionDeductreason", getInspectionDeductreason())
            .append("meetBasicRequirements", getMeetBasicRequirements())
            .append("notMeetBasicRequirementsReason", getNotMeetBasicRequirementsReason())
            .toString();
    }
}
